package com.lmq.Proxy.demo04;

import com.lmq.Proxy.demo02.UserService;
import com.lmq.Proxy.demo02.UserServiceImpl;

public class Client {
    public static void main(String[] args) {
        UserServiceImpl userService = new UserServiceImpl();
        ProxyInvocationHandler pih = new ProxyInvocationHandler();
        pih.setTarget(userService);

        UserService proxy = (UserService) pih.getProxy();

        proxy.add();

        System.out.println("over");
    }
}
